/**
 * 
 */
var AjaxOpt = function(){
	var opt = {};
	//cid = fdfdfd
	opt.post = function(url , datas, callback){
		$.ajax({
			type:"POST",
			url:url,
			data:datas,
			contentType:"application/x-www-form-urlencoded",
			dataType:"json"
		})
		.done(function(res){
			callback(res);
		});
	}
	
	
	opt.postJson = function(url, dat, callback){
		$.ajax({
			type:"POST",
			url:url,
			data:JSON.stringify(dat),
			contentType:"application/json"
		})
		.done(function(res){
			callback(res);
		});
	}
	return opt;
}();